#include "../include/config.h"
#include <iostream>
#include <cstring>
using namespace std;
void cmccFun()
{
    cout << "[CMCC] This is Cmcc!" << endl;
}

void cuccFun()
{
    cout << "[CUCC] This is Cucc!" << endl;
}
int main()
{
    cout << "[ALL] This is a test for shared code ." << endl;
#ifdef CMCC
    cmccFun();
    cout << "[CMCC] EXECUTED OVER!" << endl;
#elif CUCC
    cuccFun();
    cout << "[CUCC] EXECUTED OVER!" << endl;
#endif
}
//代码共版本设计
//test result:
// maverick@DESKTOP-42SRDNB:/home/ftp/embeded-linux-c/shared_code$ make cmcc_v
// g++ -g -Wall -DCMCC -c /home/ftp/embeded-linux-c/shared_code/src/station.cpp -o station_cmcc.o
// Executed CMCC IN /home/ftp/embeded-linux-c/shared_code
// g++ station_cmcc.o -o cmcc_v
// maverick@DESKTOP-42SRDNB:/home/ftp/embeded-linux-c/shared_code$ make cucc_v
// g++ -g -Wall -DCUCC -c /home/ftp/embeded-linux-c/shared_code/src/station.cpp -o station_cucc.o
// Executed CUCC IN /home/ftp/embeded-linux-c/shared_code
// g++ station_cucc.o -o cucc_v
// maverick@DESKTOP-42SRDNB:/home/ftp/embeded-linux-c/shared_code$ ./cmcc_v
// [ALL] This is a test for shared code .
// [CMCC] This is Cmcc!
// [CMCC] EXECUTED OVER!
// maverick@DESKTOP-42SRDNB:/home/ftp/embeded-linux-c/shared_code$ ./cucc_v
// [ALL] This is a test for shared code .
// [CUCC] This is Cucc!
// [CUCC] EXECUTED OVER!
// maverick@DESKTOP-42SRDNB:/home/ftp/embeded-linux-c/shared_code$ 